// javamaps
// Copyright (c) 2010 Lup Gratian
package Rendering.Utils;
import java.util.*;

public final class LineCollection implements ObjectCollection<Line> {
    private LinkedHashMap<Line, Line> lines_;

    /*
     * Constructori.
     */
    public LineCollection() {
        lines_ = new LinkedHashMap<Line, Line>();
    }

    public LineCollection(int capacity) {
        lines_ = new LinkedHashMap<Line, Line>(capacity);
    }

    /*
     * Metode publice.
     */
    public void Add(Line line) { lines_.put(line, line); }
    public boolean Valid(Line line) { return true; }
    public void Remove(Line value) { lines_.remove(value); }
    public void Clear() { lines_.clear(); }
    public int Count() { return lines_.size(); }
    public Collection<Line> Objects() { return lines_.values(); }
}